/*
 * @Author: your name
 * @Date: 2021-01-04 09:50:30
 * @LastEditTime: 2021-01-25 13:32:28
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \yellow-member-admin\src\main.js
 */
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import './assets/css/theme-green/index.css'; // 浅绿色主题
import './layout/directives';
import './assets/directive';
// import 'babel-polyfill';
import api from '@/api/index'
import './utils/util';
import './assets/filter';
import './components'//全局注册组件
import store from './store';
Vue.config.productionTip = false;
Vue.use(ElementUI, {
    size: 'small'
});

Vue.prototype.$api = api
Vue.prototype.IMGPATH = process.env.NODE_ENV === 'pro' ? 'http://42.193.172.213:3000' : 'http://localhost:3000';//服务器图片地址
window.imgPath = {
    
}
window.app = new Vue({
    store,
    router,
    render: h => h(App)
}).$mount('#app');

